/*************************************************************************
	> File Name: client.cpp
	> Author: ma6174
	> Mail: ma6174@163.com 
	> Created Time: 2021年12月01日 星期三 19时16分08秒
 ************************************************************************/

#include<iostream>
#include <string>
using namespace std;

void printProgram(int h, bool finished = false)
{
	if (h < 12)
		cout << "当前时间: " << h << "点，上午工作，精神百倍" << endl;
	else if (h < 13)
		cout << "当前时间: " << h << "点，饿了，午饭：犯困，午休" << endl;
	else if (h < 17)
		cout << "当前时间: " << h << "点，下午状态还不错，继续努力" << endl;
	else
	{
		if (finished)
			cout << "当前时间: " << h << "点，下班回家了" << endl;
		else
		{
			if (h < 21)
				cout << "当前时间: " << h << "点，加班哦，疲惫至极" << endl;
			else
				cout << "当前时间: " << h << "点，不行了，得睡了，都几点了" << endl;
		}
	}
}

int main()
{
	printProgram(9);
	printProgram(10);
	printProgram(12);
	printProgram(13);
	printProgram(14);
	printProgram(17);

	printProgram(19, true);
	printProgram(22, true);
	printProgram(22, false);

	return 0;
}
